import request from "@/utils/requests"
import { AxiosPromise } from "axios";
import { Result } from "@/model";
/**
 * 登录
 * @param user
 */
export function login(user:User):AxiosPromise<Result<any>>{
    return request({
        url:'/login',
        method:'post',
        data:user
    });
}
//获取权限列表
export function getPermissonList():AxiosPromise<any>{
    return request({
        url:'/auth/getPermissionList',
        method:'get'
    });
}
//退出登录
export function logout():AxiosPromise<any>{
    return request({
        url:'/logout',
        method:'get'
    });
}
